import Vue from 'vue'
import App from './App.vue'
import Vuex from 'vuex'
// 按需引入相关组件
import { Button, Radio, Aside, Container, Header, Main, Menu, Submenu, MenuItem, MenuItemGroup, Dropdown, DropdownMenu, DropdownItem, Row, Col, Card, Table, TableColumn, Breadcrumb, BreadcrumbItem, Tag, Form, FormItem, Input, Select, Option, Switch, DatePicker,Dialog,Pagination } from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import router from '../router'
import store from '../store'
import http from 'axios' //引入axios
import '../api/mock.js' //引入mock.js
 
import './assets/less/index.less'

Vue.use(Vuex)
Vue.config.productionTip = false
Vue.use(Button).use(Radio).use(Aside).use(Container).use(Header).use(Main).use(Menu).use(Submenu).use(MenuItem).use(MenuItemGroup).use(Dropdown).use(DropdownMenu).use(DropdownItem).use(Row).use(Col).use(Card).use(Table).use(TableColumn).use(Breadcrumb).use(BreadcrumbItem).use(Tag).use(Form).use(FormItem).use(Input).use(Select).use(Option).use(Switch).use(DatePicker).use(Dialog).use(Pagination)

//全局使用axiox,需要绑定在prototype属性上
Vue.prototype.$http = http


new Vue({
  store,
  router,
  render: h => h(App),
}).$mount('#app')
